<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

	<ui:composition 
	  xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:p="http://primefaces.org/ui"
      template="/templates/templateLayout.xhtml">
      
      <ui:define name="conteudo">        	
	  <link rel="stylesheet" type="text/css" href="./estilos.css"/>
 
 <h:form id="formManterMilestone" prependId="false"> 
	<p:commandButton value="Projeto" action="#{projetoBean.viewProjeto}" immediate="true" />
	<p:commandButton value="Atividade" action="#{atividadeBean.consultarAtividade}"/>
 	<p:commandButton value="Milestone" action="#{milestoneBean.consultarMilestone}"/>
 	<p:commandButton value="Membro" action="#{projetoBean.membroProjeto}"/>
 	<p:commandButton value="Log" action="#{projetoBean.consultarLog}"/> 
	<p:panel id="panelManterMilestone" style="margin-bottom:20px">
	<f:facet name="header">
		<h:outputText value="Cadastrar Novo Milestone" styleClass="outputTextTitulo"/>
	</f:facet>
    	<p:growl id="growlManterMilestone"/>  
        <h:panelGrid columns="4" style="margin-top:20px;">
			<p:outputLabel value="Código do Milestone:" styleClass="outputLabel"/>
			<p:inputText value="#{projetoBean.milestoneSave.idMilestone}" styleClass="inputId" style="text-align:left; float:left;" disabled="true"/> 
			<p:outputLabel value="Descrição:" styleClass="outputLabel" />
        	<p:inputText value="#{projetoBean.milestoneSave.descricao}" styleClass="inputDescricao" style="text-align:left; float:left;" required="true" requiredMessage="Informar o nome do Milestone!"/> 
        </h:panelGrid>
        <h:panelGrid columns="2">
			<p:outputLabel value="Data:" style="font-size:14px;"/>
        	<p:inputMask mask="99/99/9999" value="#{projetoBean.dtMilestone}" styleClass="inputData"/>
			
		</h:panelGrid> 
		</p:panel>  
		<p:commandButton value="Salvar" action="#{projetoBean.saveMilestone}" update="panelManterMilestone" styleClass="commandButton" />  
   		<p:commandButton value="Cancelar" action="#{projetoBean.consultarMilestone}" styleClass="commandButton" />
    	<p:commandButton value="Limpar"  styleClass="commandButton" /> 

</h:form>  	
</ui:define>
</ui:composition>
